package demo;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: 将文件重命名或者移动
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2024-03-26  15:07
 */
public class IODemo6 {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        File file1 = new File("./test2.text");
        boolean ret = file.renameTo(file1);
        System.out.println(ret);
    }
}
